Package-level declarations

Types

Link copied to clipboard

Notifies all registered IFloatingPaneCallbacks of floating pane events. Also implements List for convenient callback management.

Link copied to clipboard

Helper class for performing haptic feedback on a view.

Properties

Link copied to clipboard
val Int.dp: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun View.doOnGlobalLayout(crossinline block: () -> Unit)
Link copied to clipboard

Extension function to get the current layout bounds of a View, including translation.

Link copied to clipboard
fun Context.getFloat(@DimenRes id: Int, default: Float): Float

Extension function to get a float value from a dimension resource. Returns true if the resource is a float type, and fills out with the value.

fun View.getFloat(@DimenRes id: Int, default: Float): Float

Extension function to get a float value from a dimension resource, or a default if not a float.

Link copied to clipboard

Extension function to check if the View's layout direction is RTL.

Link copied to clipboard

Checks if the device is a phone-sized device.

Link copied to clipboard

Moves this Rect inside the given moveableArea if it's out of bounds, and intersects it with moveableArea. Returns true if the rect was moved.

Link copied to clipboard
fun View.updateViewBounds(targetBounds: Rect)

Extension function to update the View's layout params and position to match the target bounds.